﻿package com.vigmonk.events{
	
	import flash.events.Event;
	
	/**
	 * 
	 * LoaderEvent.as
	 * @author VIGMONK
	 * 
	 */
	 
	public class LoaderEvent extends Event
	{
		private var evntData:Object;
		
		public static const LOAD_COMPLETE:String 	= 'LOAD_COMPLETE';
		public static const LOAD_PROGRESS:String 	= 'LOAD_PROGRESS';
		public static const SECURITY_ERROR:String 	= 'SECURITY_ERROR';
		public static const HTTP_STATUS:String 		= 'HTTP_STATUS';
		public static const IO_ERROR:String 		= 'IO_ERROR';
		
		public function LoaderEvent(_type:String, _data:Object=null, _bubbles:Boolean = false, _cancelable:Boolean = false):void
		{
			super(_type,_bubbles,_cancelable);
			evntData = _data;
		}
		public function get data():Object
		{
			return evntData;
		}
		override public function toString():String 
		{
			return 'Type : '+this.type+' Data : '+data+''+' bubbles : '+bubbles+' cancelable : '+cancelable;
		}
		
	}
}